package com.lanhu.designpattern.decorator;

/**
 * author:zhangzg
 * date:2020/11/11 21:58
 */
public class LoginServiceImpl implements LoginService{

    @Override
    public String login(String username, String password, String type) {
        if(type .equalsIgnoreCase("account")){
            System.out.println("账号登陆");
            System.out.println("账号:"+username);
            System.out.println("密码:"+password);
            return "Success";
        }
        return "Error!";
    }
}
